package page;

import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JPanel;

import page2.Hero;

public class Game extends JPanel{
	public static BufferedImage bgImg;
	public static Integer bgheight;
	public static Integer bgWidth;
	public static BufferedImage HeroImg;
	public static Hero hero;
	public static final Integer()
	
	static {
		try{
			bgImg=ImageIO.read(arg0);
		
}catch(IOException e){
	e.printStackTrace();
}
	
}
	public static void paintComponet(Graphics s) {
		s.drawImage(bgImg, 0, 0, null);
		s.drawImage(hero.image, hero.x, hero.y, null);
	}


}
